import {request} from '../utils/request'

export function getCategory() {
  return request({
    url: 'class',
    method: 'get',
    data: {
        
    }
  })
}


export function getList(keyword) {
  return request({
    url: 'search',
    method: 'get',
    data: {
        keyword,
        num: 100
    }
  })
}

export function getByList(classid, start) {
  return request({
    url: 'byclass',
    method: 'get',
    data: {
        classid,
        start,
        num: 20
    }
  })
}

export function getDetail(id) {
  return request({
    url: 'detail',
    method: 'get',
    data: {
        id
    }
  })
}